package com.aco.fatureapp.enums;

import android.bluetooth.BluetoothClass;

import com.aco.fatureapp.R;

public enum EnumBluetoothClass {

	AUDIO_VIDEO_CAMCORDER(BluetoothClass.Device.AUDIO_VIDEO_CAMCORDER,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_CAR_AUDIO(BluetoothClass.Device.AUDIO_VIDEO_CAR_AUDIO,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_HANDSFREE(BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE,
			R.drawable.ic_device_headset),

	AUDIO_VIDEO_HEADPHONES(BluetoothClass.Device.AUDIO_VIDEO_HEADPHONES,
			R.drawable.ic_device_headset),

	AUDIO_VIDEO_HIFI_AUDIO(BluetoothClass.Device.AUDIO_VIDEO_HIFI_AUDIO,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_LOUDSPEAKER(BluetoothClass.Device.AUDIO_VIDEO_LOUDSPEAKER,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_MICROPHONE(BluetoothClass.Device.AUDIO_VIDEO_MICROPHONE,
			R.drawable.ic_device_mic),

	AUDIO_VIDEO_PORTABLE_AUDIO(
			BluetoothClass.Device.AUDIO_VIDEO_PORTABLE_AUDIO,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_SET_TOP_BOX(BluetoothClass.Device.AUDIO_VIDEO_SET_TOP_BOX,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_UNCATEGORIZED(BluetoothClass.Device.AUDIO_VIDEO_UNCATEGORIZED,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_VCR(BluetoothClass.Device.AUDIO_VIDEO_VCR,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_VIDEO_CAMERA(BluetoothClass.Device.AUDIO_VIDEO_VIDEO_CAMERA,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_VIDEO_CONFERENCING(
			BluetoothClass.Device.AUDIO_VIDEO_VIDEO_CONFERENCING,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER(
			BluetoothClass.Device.AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_VIDEO_GAMING_TOY(
			BluetoothClass.Device.AUDIO_VIDEO_VIDEO_GAMING_TOY,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_VIDEO_MONITOR(BluetoothClass.Device.AUDIO_VIDEO_VIDEO_MONITOR,
			R.drawable.ic_device_audio),

	AUDIO_VIDEO_WEARABLE_HEADSET(
			BluetoothClass.Device.AUDIO_VIDEO_WEARABLE_HEADSET,
			R.drawable.ic_device_headset),

	COMPUTER_DESKTOP(BluetoothClass.Device.COMPUTER_DESKTOP,
			R.drawable.ic_device_laptop),

	COMPUTER_HANDHELD_PC_PDA(BluetoothClass.Device.COMPUTER_HANDHELD_PC_PDA,
			R.drawable.ic_device_laptop),

	COMPUTER_LAPTOP(BluetoothClass.Device.COMPUTER_LAPTOP,
			R.drawable.ic_device_laptop),

	COMPUTER_PALM_SIZE_PC_PDA(BluetoothClass.Device.COMPUTER_PALM_SIZE_PC_PDA,
			R.drawable.ic_device_laptop),

	COMPUTER_SERVER(BluetoothClass.Device.COMPUTER_SERVER,
			R.drawable.ic_device_laptop),

	COMPUTER_UNCATEGORIZED(BluetoothClass.Device.COMPUTER_UNCATEGORIZED,
			R.drawable.ic_device_laptop),

	COMPUTER_WEARABLE(BluetoothClass.Device.COMPUTER_WEARABLE,
			R.drawable.ic_device_laptop),

	HEALTH_BLOOD_PRESSURE(BluetoothClass.Device.HEALTH_BLOOD_PRESSURE,
			R.drawable.ic_device_default),

	HEALTH_DATA_DISPLAY(BluetoothClass.Device.HEALTH_DATA_DISPLAY,
			R.drawable.ic_device_default),

	HEALTH_GLUCOSE(BluetoothClass.Device.HEALTH_GLUCOSE,
			R.drawable.ic_device_default),

	HEALTH_PULSE_OXIMETER(BluetoothClass.Device.HEALTH_PULSE_OXIMETER,
			R.drawable.ic_device_default),

	HEALTH_PULSE_RATE(BluetoothClass.Device.HEALTH_PULSE_RATE,
			R.drawable.ic_device_default),

	HEALTH_THERMOMETER(BluetoothClass.Device.HEALTH_THERMOMETER,
			R.drawable.ic_device_default),

	HEALTH_UNCATEGORIZED(BluetoothClass.Device.HEALTH_UNCATEGORIZED,
			R.drawable.ic_device_default),

	HEALTH_WEIGHING(BluetoothClass.Device.HEALTH_WEIGHING,
			R.drawable.ic_device_default),

	PHONE_CELLULAR(BluetoothClass.Device.PHONE_CELLULAR,
			R.drawable.ic_device_phone),

	PHONE_CORDLESS(BluetoothClass.Device.PHONE_CORDLESS,
			R.drawable.ic_device_phone),

	PHONE_ISDN(BluetoothClass.Device.PHONE_ISDN, R.drawable.ic_device_phone),

	PHONE_MODEM_OR_GATEWAY(BluetoothClass.Device.PHONE_MODEM_OR_GATEWAY,
			R.drawable.ic_device_phone),

	PHONE_SMART(BluetoothClass.Device.PHONE_SMART, R.drawable.ic_device_phone),

	PHONE_UNCATEGORIZED(BluetoothClass.Device.PHONE_UNCATEGORIZED,
			R.drawable.ic_device_phone),

	TOY_CONTROLLER(BluetoothClass.Device.TOY_CONTROLLER,
			R.drawable.ic_device_default),

	TOY_DOLL_ACTION_FIGURE(BluetoothClass.Device.TOY_DOLL_ACTION_FIGURE,
			R.drawable.ic_device_default),

	TOY_GAME(BluetoothClass.Device.TOY_GAME, R.drawable.ic_device_default),

	TOY_ROBOT(BluetoothClass.Device.TOY_ROBOT, R.drawable.ic_device_default),

	TOY_UNCATEGORIZED(BluetoothClass.Device.TOY_UNCATEGORIZED,
			R.drawable.ic_device_default),

	TOY_VEHICLE(BluetoothClass.Device.TOY_VEHICLE, R.drawable.ic_device_default),

	WEARABLE_GLASSES(BluetoothClass.Device.WEARABLE_GLASSES,
			R.drawable.ic_device_default),

	WEARABLE_HELMET(BluetoothClass.Device.WEARABLE_HELMET,
			R.drawable.ic_device_default),

	WEARABLE_JACKET(BluetoothClass.Device.WEARABLE_JACKET,
			R.drawable.ic_device_default),

	WEARABLE_PAGER(BluetoothClass.Device.WEARABLE_PAGER,
			R.drawable.ic_device_default),

	WEARABLE_UNCATEGORIZED(BluetoothClass.Device.WEARABLE_UNCATEGORIZED,
			R.drawable.ic_device_default),

	WEARABLE_WRIST_WATCH(BluetoothClass.Device.WEARABLE_WRIST_WATCH,
			R.drawable.ic_device_default),

	PRINTERS(1664, R.drawable.ic_device_printer);

	int id;
	int drawable;

	EnumBluetoothClass(int id, int drawable) {
		this.id = id;
		this.drawable = drawable;
	}

	public static int getValueOf(final int id) {
		for (final EnumBluetoothClass enu : EnumBluetoothClass.values()) {
			if (enu.id == id) {
				return enu.drawable;
			}
		}

		return R.drawable.ic_device_default;
	}
}